﻿using System;
using System.Collections;
using System.IO;
using System.Net.Security;
using System.Net.Sockets;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using log4net;
using Taype.Trading.BTC.Utilities;

namespace Taype.Trading.BTC.MtGoxAPIClient
{
    /// <summary>
    /// This class implements the streaming Socket.io based version of the MtGox API as specified at https://en.bitcoin.it/wiki/MtGox/API#Streaming_API
    /// </summary>
    public class streaming
    {
        private string baseURL = "ws://127.0.0.1:443/socket.io/socket.io.js";

        private readonly ILog logger;

        private MtGoxSocketIOClient _realtimeClient;

        public streaming()
        {
            log4net.Config.XmlConfigurator.Configure();
            logger = LogManager.GetLogger(typeof(streaming));
            _realtimeClient = new MtGoxSocketIOClient(new Uri("ws://socketio.mtgox.com:443"));
            _realtimeClient.Connect();
        }

    }
}
